package eg1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestStudent {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext c=new AnnotationConfigApplicationContext
        ("eg1");
        Student s=c.getBean(Student.class);
        System.out.println("s="+s);
    }
}
